package com.nlgc365.designpattern.Chapter04_Pattern.Behavior.P07_Visitor.Iteration01;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 作用: 业务类, 目的将上层业务从数据结构抽取出来, 防止底层数据类内部方法膨胀
 */
public class Extractor {
    private static final Logger logger = LoggerFactory.getLogger(Extractor.class);

    public void extract2Txt(PDFResourceFile pdfResourceFile) {
        logger.info("PDF extract to Txt --> Path: {}", pdfResourceFile.getPath());
    }

    public void extract2Txt(PPTResourceFile pptResourceFile) {
        logger.info("PPT extract to Txt --> Path: {}", pptResourceFile.getPath());
    }

    public void extract2Txt(WordResourceFile wordResourceFile) {
        logger.info("Word extract to Txt --> Path: {}", wordResourceFile.getPath());
    }
}
